/*
 * @description: 描述内容
 */
import { useState } from "react";

function App() {
  const [num, setNum] = useState(() => {
    const num1 = 1 + 2;
    const num2 = 2 + 3;
    return num1 + num2;
  });

  const [count, setCount] = useState(1);
  return (
    <div>
      <div onClick={() => setNum(num + 1)}>
        {num}
      </div>

      <div onClick={() => setCount((prveNum) => prveNum + 1)}>
        {count}
      </div>
    </div>

  );
}

export default App;
